import Vue from 'vue'
import Router from 'vue-router'

import Home from '../components/Home.vue'
import Search from '../components/Search.vue'
import Member from '../components/Member.vue'
import Car from '../components/Car.vue'
import NewsList from '../components/news/NewsList.vue' 
import NewsInfo from '../components/news/NewsInfo.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {path:'/',redirect:'/home'},
    {path:'/home',component:Home},
    {path:'/search',component:Search},
    {path:'/car',component:Car},
    {path:'/member',component:Member},
    {path:'/newslist',component:NewsList},
    {path:'/newsInfo/:id',component:NewsInfo}
  ]
})
